<template>
<div>
  <!-- 搜索区域 -->
  我是积云教育的学生,名字是{{name}}
  <el-input v-model="name" placeholder="Please input" />

  <el-form ref="kgForm" :model="addForm" label-width="50px">
                    <el-form-item label="名称">
                        <el-input v-model="name" placeholder="Please input" />
                    </el-form-item>
                    <el-form-item label="类型">
                        <el-input v-model="addForm.description"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button @click="">取 消</el-button>
                        <el-button type="primary" @click="">确 定</el-button>
                    </el-form-item>
                </el-form>
</div>
</template>
<script lang="ts" setup> 
  import { ref ,reactive, onMounted} from "vue";
  import { request } from "/@/utils/service";
  const addForm = ref({
    name: '11',
    description: '22',
  });
  let name = ref();
  const getData = () => {
    request({
                url: '/api/knowledge/kg/',
                method: 'get',
      })
      .then(res => {
        name.value = res.result;
      })
      .catch(err => {
        console.log(err);
      });
  };

  onMounted(() => {

  });
</script>